<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="tfn" uri="http://www.totoro.com/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>已买到的宝贝</title>
    <link rel="shortcut icon" type="image/x-icon" href="/static/img/index/favicon.png">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/public.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/iconFont/iconfont.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/user/bought_baby.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/nav.css"/>

    <style>
        body, button, input, select, textarea {
            font: 12px/1.5 tahoma, arial, 'Hiragino Sans GB', '\5b8b\4f53', sans-serif;
        }
    </style>
</head>
<body>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/frame/jquery-3.5.1.min.js"></script>
<script src="/static/js/frame/totoro-utils.js"></script>
<script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
<div id="page">
    <jsp:include page="${pageContext.request.contextPath}/public_page/nav.jsp"></jsp:include>
    <div style="width: 100%; height: 6px; background-color: #F2F2F2"></div>

    <jsp:include page="${pageContext.request.contextPath}/public_page/ui_header.jsp"></jsp:include>


    <div id="content">
        <div id="mytaobao-panel" class="grid-c2">
            <div id="J_Col_Main" class="col-main">
                <div id="J_bought_main" style="margin-left: 120px; min-height: 600px">
                    <div id="tp-bought-root" class="index-mod__root___3ZrD7">
                        <div class="tabs-mod__container___ICzlj nav-mod__tabs___1D0ZI">
                            <div class="tabs-mod__main___74ZLv">
                                <div class="tabs-mod__tab___3vuhD ${tabCode==""?"tabs-mod__selected___2DHDY":""}" id="allOrder">
                                    <span class="nav-mod__tab___1PnZ4" data-reactid=".0.0.0.$all.0">
                                    <span class="nav-mod__text___3O7jT">所有订单</span>
                                    <span class="nav-mod__count___hc9IJ"></span>
                                    </span>
                                    </span>
                                    <span class="tabs-mod__sep___waJNr">|</span>
                                </div>
                                <div class='tabs-mod__tab___3vuhD ${tabCode=="waitPay"?"tabs-mod__selected___2DHDY":""}' id="waitPay">
                                    <span class="nav-mod__tab___1PnZ4">
                                        <span class="nav-mod__text___3O7jT">待付款</span>
                                        <span class="nav-mod__count___hc9IJ">${typesCount['1']}</span>
                                    </span>
                                    <span class="tabs-mod__sep___waJNr">|</span>
                                </div>
                                <div class='tabs-mod__tab___3vuhD ${tabCode=="waitSend"?"tabs-mod__selected___2DHDY":""}' id="waitSend">
                                    <span class="nav-mod__tab___1PnZ4">
                                        <span class="nav-mod__text___3O7jT">待发货</span>
                                        <span class="nav-mod__count___hc9IJ">${typesCount['2']}</span>
                                    </span
                                    ><span>|</span>
                                </div>
                                <div class='tabs-mod__tab___3vuhD ${tabCode=="waitConfirm"?"tabs-mod__selected___2DHDY":""}' id="waitConfirm">
                                    <span class="nav-mod__tab___1PnZ4">
                                        <span class="nav-mod__text___3O7jT">待收货</span>
                                        <span class="nav-mod__count___hc9IJ">${typesCount['3']}</span>
                                    </span>
                                    <span
                                        class="tabs-mod__sep___waJNr">|</span>
                                </div>
                                <div class='tabs-mod__tab___3vuhD ${tabCode=="waitRate"?"tabs-mod__selected___2DHDY":""}' id="waitRate">
                                    <span class="nav-mod__tab___1PnZ4">
                                        <span class="nav-mod__text___3O7jT">待评价</span>
                                        <span class="nav-mod__count___hc9IJ">${typesCount['4']}</span>
                                    </span>
                                </div>
                            </div>
                            <div class="tabs-mod__minors___3PnBm">
                                <div class="tabs-mod__tab___3vuhD">
                                    <a id="recycleTab" class="nav-mod__tab___1PnZ4 nav-mod__recycle___2c0Pl" href="/user/list_recyled_items.htm">
                                        <img class="nav-mod__img___3LK9B" src="//img.alicdn.com/tps/i4/TB1G5QqIFXXXXbvXFXXcmA2.FXX-11-12.png" alt="订单回收站">
                                        <span class="nav-mod__text___3O7jT">订单回收站</span>
                                    </a>
                                </div>
                            </div>
                        </div>
                        <div class="index-mod__ems-ad___3fP6L js-ems-ad" data-reactid=".0.1">
                            <div>
                                <div>
                                    <span></span>
                                </div>
                            </div>
                        </div>
                            <div class="search-mod__simple-part___3YVUs">
                                <input type="text" placeholder="输入商品标题或订单号进行搜索" class="search-mod__order-search-input___29Ui1" id="orderOrTitle" value="${fn:trim(param.productTitleOrOrderId)}">
                                <button type="button" class="search-mod__order-search-button___1q3E0" id="orderSearch">订单搜索
                                </button>
                                <button type="button" class="search-mod__more-button___nbIba" id="jj">
                                    <span>更多筛选条件</span>
                                    <img style="position: relative;top: -2px;left: 2px;" src="//img.alicdn.com/tps/TB1jK1dIVXXXXXzXVXXXXXXXXXX.png">
                                </button>
                            </div>
                            <div class="more-part" style="display: none;">
                                <div class="row-mod__row___1aPep search-mod__row___1iPN4">
                                    <div class="search-mod__col___3ytvL search-mod__col1___-AZN4">
                                        <label>
                                            <span class="search-mod__label-text___1aQSY">评价状态</span>
                                        <span class="field-select-mod__select___xOMpt trade-select search-mod__select-input___35Np6 rc-select rc-select-enabled" data-select-class="evaluate" style="margin-left: -3px;">
                                            <span class="rc-select-selection rc-select-selection--single" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0">
                                                <span class="rc-select-selection__rendered">
                                                    <c:set var="evaText" value="${param.evaStatus==0?'需我评价':param.evaStatus==1?'我已评价':'全部'}"></c:set>
                                                    <span class="rc-text eva-val" data-value="${param.evaStatus}">${evaText}</span>
                                                </span>
                                                <span class="rc-select-arrow" tabindex="-1" style="outline:none;">
                                                    <b></b>
                                                </span>
                                            </span>
                                        </span>
                                    </div>
                                    <div class="search-mod__col___3ytvL search-mod__col2___24ptm" id="test6">
                                        <span class="search-mod__label-text___1aQSY">成交时间</span>
                                        <input class="field-input-mod__input___Iwb6D search-mod__select-input___35Np6" placeholder="请选择时间范围起始" type="text" autocomplete="off" id="startTime" value="${param.startTime}">
                                        <span class="search-mod__sep___3Np13">-</span>
                                        <input class="field-input-mod__input___Iwb6D search-mod__select-input___35Np6" placeholder="请选择时间范围结束" type="text" autocomplete="off" id="endTime" value="${param.endTime}">
                                    </div>
                                    <style>
                                        .layui-laydate .layui-this {
                                            background-color: #f40 !important;
                                            color: #fff !important;
                                        }
                                    </style>
                                    <div class="search-mod__col___3ytvL search-mod__col3___2W40T">
                                        <label class="search-mod__last-field___3cUFK">
                                            <span>卖家昵称</span>
                                            <input class="field-input-mod__input___Iwb6D search-mod__select-input___35Np6" type="text" id="sellerName" value="${sellerName}">
                                        </label>
                                    </div>
                                </div>
                                <div class="row-mod__row___1aPep search-mod__row___1iPN4">
                                    <div class="search-mod__col___3ytvL search-mod__col1___-AZN4">
                                        <label>
                                        <span class="search-mod__label-text___1aQSY">交易状态</span>
                                            <span class="field-select-mod__select___xOMpt trade-select search-mod__select-input___35Np6 rc-select rc-select-enabled" data-select-class="transaction">
                                        <span class="rc-select-selection rc-select-selection--single" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0">
                                        <span class="rc-select-selection__rendered">
                                            <c:set var="transactionText" value="${param.transactionStatus==1?'付款确认中':param.transactionStatus==2?'买家已付款':
                                            param.transactionStatus == 3?'卖家已发货':param.transactionStatus==4?'等待买家评价':param.transactionStatus == 6?'退款中的订单':
                                            param.transactionStatus==7?'交易失败':param.transactionStatus==8?'交易成功':'全部'}"></c:set>
                                        <span class="rc-text transaction-val" data-value="${param.transactionStatus}">${transactionText}</span></span><span
                                            class="rc-select-arrow" tabindex="-1" style="outline:none;">
                                        <b></b>
                                    </span>
                                    </span>
                                    </span>
                                    </label>
                                    </div>

                                </div>
                                <div class="row-mod__row___1aPep">
                                    <button class="button-mod__button___2HDif button-mod__primary___1tmFA" id="searchTrem">搜索</button>
                                </div>
                            </div>
                        <span id="nav_anchor" style="visibility:hidden;height:0;" data-reactid=".0.3"></span>
                        <table class="bought-table-mod__table___AnaXt table-head-mod__table___17eFg"
                               data-reactid=".0.4">
                            <colgroup data-reactid=".0.4.0">
                                <col class="bought-table-mod__col1___3U5RK" data-reactid=".0.4.0.0">
                                <col class="bought-table-mod__col2___224Oh" data-reactid=".0.4.0.1">
                                <col class="bought-table-mod__col3___J0oe0" data-reactid=".0.4.0.2">
                                <col class="bought-table-mod__col4___XvKTC" data-reactid=".0.4.0.3">
                                <col class="bought-table-mod__col5___2kktP" data-reactid=".0.4.0.4">
                                <col class="bought-table-mod__col6___1KqCQ" data-reactid=".0.4.0.5">
                                <col class="bought-table-mod__col7___PpB_p" data-reactid=".0.4.0.6">
                            </colgroup>
                            <tbody data-reactid=".0.4.1">
                            <tr data-reactid=".0.4.1.0">
                                <th data-reactid=".0.4.1.0.0">宝贝</th>
                                <th data-reactid=".0.4.1.0.1">单价</th>
                                <th data-reactid=".0.4.1.0.2">数量</th>
                                <th data-reactid=".0.4.1.0.3">商品操作</th>
                                <th data-reactid=".0.4.1.0.4">实付款</th>
                                <th data-reactid=".0.4.1.0.5"><span
                                        class="field-select-mod__select___xOMpt trade-select table-head-mod__status___SBEwU rc-select rc-select-enabled small-select">
                                    <span
                                        class="rc-select-selection rc-select-selection--single" role="combobox"
                                        aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0"
                                        data-reactid=".0.4.1.0.5.0.$selection"><span
                                        class="rc-select-selection__rendered"
                                        data-reactid=".0.4.1.0.5.0.$selection.0">
                                    <span id="status">交易状态</span></span><span
                                        class="rc-select-arrow" tabindex="-1" style="outline:none;"
                                        data-reactid=".0.4.1.0.5.0.$selection.$arrow"><b
                                        data-reactid=".0.4.1.0.5.0.$selection.$arrow.0"></b></span></span></span></th>
                                <th data-reactid=".0.4.1.0.6">交易操作</th>
                            </tr>
                            </tbody>
                        </table>

                        <div class="rc-select-dropdown rc-small-select" style="left: 946px;top: 188px; width: 118px; display: none;">
                            <div data-reactid=".1.1.0">
                                <ul class="rc-select-dropdown-menu" id="transactionStatus" role="menu">
                                    <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="999">全部
                                    </li>
                                    <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="4">等待买家评价
                                    </li>
                                    <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="1">付款确认中
                                    </li>
                                    <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="2">买家已付款
                                    </li>
                                    <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="3">卖家已发货
                                    </li>
                                    <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="8">交易成功
                                    </li>
                                    <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="7">交易失败
                                    </li>
                                    <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="6">退款中的订单
                                    </li>
                                </ul>
                            </div>
                        </div>

                        <c:if test="${fn:length(marketOrders)>0 && marketOrders!=null}" var="notEmpty">
                        <div class="row-mod__row___1aPep js-actions-row-top" data-reactid=".0.5" style="height: 24px;">
                            <div style="float:left;"  class="operating>
                                <label class="index-mod__select-all___2lWPl js-select-all">
                                    <input class="index-mod__checkbox___3mesI allChecked" type="checkbox">
                                    <span>全选</span></label>
                                <div class="batch-mod__container___sK68S" data-reactid=".0.5.0.1">
                                    <button class="button-mod__button___2HDif button-mod__default___2pRKd button-mod__small___1a8rc batch-mod__button___2aEBk batchReceipt"
                                    >批量确认收货
                                    </button>
                                </div>
                            </div>
                            <div style="float:right;" data-reactid=".0.5.1">
                                <div class="simple-pagination-mod__container___1pC5p">
                                    <button class="button-mod__button___2Ew0a button-mod__default___vxWMG button-mod__small___19RGg simple-pagination-mod__prev___pJnpC" id="prevCurr"
                                        ${param.nowPage==1 or empty param.nowPage?'style="cursor: not-allowed;" disabled':""}>
                                        上一页
                                    </button>
                                    <button class="button-mod__button___2Ew0a button-mod__default___vxWMG button-mod__small___19RGg" id="nextCurr"
                                        ${param.nowPage==tfn:formatNumber((allPage-1)/10+1, 0)?'style="cursor: not-allowed;" disabled':""}>
                                        下一页
                                    </button>
                                </div>
                            </div>
                        </div>


                        <c:forEach items="${marketOrders}" var="marketOrder" varStatus="vs">
                            <div class="index-mod__order-container___1ur4- js-order-container" data-odd="${marketOrder.marketOdd}" data-mo-id="${marketOrder.id}">
                                <div class='bought-wrapper-mod__trade-order___2lrzV ${marketOrder.orderStatus!=8 and marketOrder.orderStatus!=7?"":"bought-wrapper-mod__closed___3pIh6"}'>
                                    <table class="bought-table-mod__table___AnaXt bought-wrapper-mod__table___3xFFM">
                                        <colgroup>
                                            <col class="bought-table-mod__col1___3U5RK">
                                            <col class="bought-table-mod__col2___224Oh">
                                            <col class="bought-table-mod__col3___J0oe0">
                                            <col class="bought-table-mod__col4___XvKTC">
                                            <col class="bought-table-mod__col5___2kktP">
                                            <col class="bought-table-mod__col6___1KqCQ">
                                            <col class="bought-table-mod__col7___PpB_p">
                                        </colgroup>
                                        <tbody class="bought-wrapper-mod__head___2vnqo">
                                        <tr>
                                            <td class="bought-wrapper-mod__head-info-cell___29cDO">
                                                <label class="bought-wrapper-mod__checkbox-label___3Va60">
                                                <span class="bought-wrapper-mod__checkbox___11anQ">
                                                    <input type="checkbox" class="${marketOrder.orderStatus==3?'scopeChecked':''}" ${marketOrder.orderStatus!=3?'disabled':''}/>
                                                </span>
                                                    <span class="bought-wrapper-mod__create-time___yNWVS">${tfn:formatDateByString(marketOrder.createTime)}</span>
                                                </label>
                                                <span>
                                                <span>订单号</span>
                                                <span>: </span>
                                                <span>${marketOrder.marketOdd}</span>
                                            </span>
                                            </td>
                                            <td colspan="2" class="bought-wrapper-mod__seller-container___3dAK3">
                                            <span class="seller-mod__container___zFAFV">
                                                <img src="//gtd.alicdn.com/tps/i2/TB1aJQKFVXXXXamXFXXEDhGGXXX-32-32.png" class="seller-mod__icon___2F6_V">
                                                <a href="//store.taobao.com/shop/view_shop.htm?user_number_id=3109436058" class="seller-mod__name___2IlQm" title="${marketOrder.shop.shopName}" target="_blank" rel="noopener noreferrer">${marketOrder.shop.shopName}</a>
                                            </span>
                                            </td>
                                            <td>
                                            <span id="webww1">
                                                <span class="ww-light ww-large" data-display="inline" data-nick="${marketOrder.shop.shopName}" data-tnick="${marketOrder.shop.shopName}">
                                                    <a data-to-uid="${marketOrder.shop.slid}" target="_blank" class="ww-inline ww-online" title="点此可以直接和卖家交流选好的宝贝，或相互交流网购体验，还支持语音视频噢。"></a>
                                                </span>
                                            </span>
                                            </td>
                                            <td colspan="3" class="bought-wrapper-mod__thead-operations-container___2LwDA">
                                                <span></span>
                                                <a class="bought-wrapper-mod__th-operation___yRtHm always-visible delete-order" title="删除订单" target="_blank" rel="noopener noreferrer" action="a7" id="delOrder">
                                                    <i style="height:17px;width:1px;padding-left:17px;overflow:hidden;vertical-align:middle;font-size:0px;display:inline-block;visibility:visible;background:url(//img.alicdn.com/tps/i1/TB1heyGFVXXXXXpXXXXR3Ey7pXX-550-260.png) no-repeat -239px -176px;"></i>
                                                </a>
                                            </td>
                                        </tr>
                                        </tbody>
                                        <tbody>
                                        <c:set var="rowSpanLen" value="${fn:length(marketOrder.marketSrOrderList)}"></c:set>
                                        <c:forEach items="${marketOrder.marketSrOrderList}" var="marketSrOrder" varStatus="vs2">
                                            <tr>
                                                <td class="sol-mod__no-br___36X3g">
                                                    <div class="ml-mod__container___2DOxT production-mod__production___123Ax suborder-mod__production___3WebF">
                                                        <div class="ml-mod__media___2sZrj" style="width:80px; float: left">
                                                            <a href="/buy.htm?pid=${marketSrOrder.product.id}&sid=${marketOrder.shop.id}&skuCode=0" class="production-mod__pic___G8alD" target="_blank" rel="noopener noreferrer">
                                                                <img src="${marketSrOrder.product.productImages[0].imagePath}">
                                                                <span> </span>
                                                            </a>
                                                        </div>
                                                        <div style="margin-left:90px;">
                                                            <p>
                                                                <a href="/buy.htm?pid=${marketSrOrder.product.id}&sid=${marketOrder.shop.id}&skuCode=0" target="_blank" rel="noopener noreferrer">
                                                                    <span> </span>
                                                                    <span style="line-height:16px;">${marketSrOrder.product.productName}</span>
                                                                    <span> </span>
                                                                </a>
                                                                <a href="/order//tradeSnap.htm?tradeID=${marketOrder.marketOdd}&detailID=${marketSrOrder.id}&snapShot=true" target="_blank" rel="noopener noreferrer">
                                                                    [交易快照]
                                                                </a>
                                                                <span></span>
                                                                <span></span>
                                                            </p>
                                                            <p>
                                                               <%-- 格式化Skull --%>
                                                               <c:set var="skuData" value="${marketSrOrder.product.productSpecs.productSpaceData}"></c:set>
                                                               <c:set var="skuDatas" value='${fn:split(fn:replace(fn:replace(skuData, "{" , ""), "}", ""), ",")}'></c:set>

                                                            <c:forEach begin="0" end="${fn:length(skuDatas)}" var="i">
                                                                <span class="production-mod__sku-item___395gE">
                                                                    <span>${fn:split(fn:replace(skuDatas[hdVs.index], "\"", ""), "|")[0]}</span>
                                                                </span>
                                                            </c:forEach>
                                                            </p>
                                                            <p>
                                                                <a href="//rule.tmall.com/tdetail-4400.htm" title="正品保证" type="3" style="margin-right:8px;" target="_blank">
                                                                    <img src="//img.alicdn.com/tps/i2/T1SyeXFpliXXaSQP_X-16-16.png">
                                                                </a>
                                                                <a href="d=" title="如实描述" type="3" style="margin-right:8px;" target="_blank">
                                                                    <img src="//img.alicdn.com/tps/TB1PDB6IVXXXXaVaXXXXXXXXXXX.png">
                                                                </a>
                                                                <a href="//pages.tmall.com/wow/seller/act/seven-day" title="七天退换" type="3" style="margin-right:8px;" target="_blank">
                                                                    <img src="//img.alicdn.com/tps/i3/T1Vyl6FCBlXXaSQP_X-16-16.png">
                                                                </a>
                                                            </p>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td class="sol-mod__no-br___36X3g">
                                                    <div class="price-mod__price___3_8Zs">
                                                        <p>
                                                            <c:if test="${marketSrOrder.product.productSpecs.productPrice > marketSrOrder.payPrice/marketSrOrder.buyCount}">
                                                                <del class="price-mod__del___3kcDc">
                                                                    <span>￥</span>
                                                                    <span>${marketSrOrder.product.productSpecs.productPrice}</span>
                                                                </del>
                                                            </c:if>
                                                        </p>
                                                        <p>
                                                            <span>￥</span>
                                                            <span><fmt:formatNumber type="currency" pattern=".00" value="${marketSrOrder.payPrice/marketSrOrder.buyCount}"></fmt:formatNumber></span>
                                                        </p>
                                                    </div>
                                                </td>
                                                <td class="sol-mod__no-br___36X3g">
                                                    <div>
                                                        <p>
                                                            ${marketSrOrder.buyCount}</p>
                                                    </div>
                                                </td>
                                                <td>
                                                    <div>
                                                        <c:if test="${marketOrder.orderStatus > 1 and marketOrder.orderStatus < 5}">
                                                            <p style="margin-bottom:3px;">
                                                                <a href="/dispute/applyRouter.htm?bizOrderId=${marketOrder.marketOdd}&detailId=${marketSrOrder.id}" class="text-mod__link___1rXmw text-mod__hover___1TDrR" target="_blank" rel="noopener noreferrer">退款退货</a>
                                                            </p>
                                                        </c:if>
                                                        <c:if test="${marketOrder.orderStatus > 4 and marketOrder.orderStatus < 6}">
                                                            <p style="margin-bottom:3px;">
                                                                <a href="/dispute/applyRouter.htm?bizOrderId=${marketOrder.marketOdd}&detailId=${marketSrOrder.id}" class="text-mod__link___1rXmw text-mod__hover___1TDrR" target="_blank" rel="noopener noreferrer">申请售后</a>
                                                            </p>
                                                        </c:if>
                                                        <c:if test="${marketOrder.orderStatus >5 and marketOrder.orderStatus < 8}">
                                                            <a href=/dispute/detail.htm?bizOrderId=${marketOrder.marketOdd}&detailId=${marketSrOrder.id}&bizReturnId=${primaryReturnMap.get(marketSrOrder.id+='').returnOdd} class="text-mod__link___1rXmw text-mod__hover___1TDrR" target="_blank" rel="noopener noreferrer">查看售后</a>
                                                        </c:if>
                                                        <p style="margin-bottom:3px;">
                                                            <a href="" class="text-mod__link___1rXmw text-mod__hover___1TDrR" target="_blank" rel="noopener noreferrer">投诉卖家</a>
                                                        </p></div>
                                                </td>
                                                <c:if test="${vs2.first}">
                                                    <td class="" ${vs2.first?"rowspan="+=rowSpanLen:""}>
                                                        <c:if test="${vs2.first}">
                                                            <div>
                                                                <div class="price-mod__price___3_8Zs">
                                                                    <p>
                                                                        <strong>
                                                                            <span>￥</span>
                                                                            <span><fmt:formatNumber type="currency" pattern=".00" value="${marketOrder.allPrice}"></fmt:formatNumber></span>
                                                                        </strong>
                                                                    </p></div>
                                                                <p style="color:#6c6c6c;font-family:verdana;">
                                                                    <span>(含运费：</span>
                                                                    <span>￥0.00</span>
                                                                    <span></span>
                                                                    <span></span>
                                                                    <span>)</span>
                                                                </p>
                                                                <div style="font-family:verdana;">
                                                                    <div></div>
                                                                </div>
                                                                <span></span>
                                                            </div>
                                                        </c:if>
                                                    </td>
                                                </c:if>
                                                <c:if test="${vs2.first}">
                                                    <td class="" ${vs2.first?"rowspan="+=rowSpanLen:""}>

                                                        <c:if test="${marketOrder.orderStatus == 1}">
                                                            <p style="margin-bottom:3px;">
                                                                <span class="text-mod__link___1rXmw">等待买家付款</span>
                                                            </p>

                                                            <div>
                                                            </div>
                                                        </c:if>

                                                                <c:if test="${marketOrder.orderStatus == 2}">
                                                                    <p style="margin-bottom:3px;">
                                                                        <span class="text-mod__link___1rXmw">等待卖家发货</span>
                                                                    </p>
                                                                    <div>
                                                                    </div>
                                                                </c:if>

                                                                <c:if test="${marketOrder.orderStatus == 3}">
                                                                    <p style="margin-bottom:3px;">
                                                                        <span class="text-mod__link___1rXmw">等待买家收货</span>
                                                                    </p>
                                                                    <div>
                                                                        <p style="margin-bottom:3px;">
                                                                            <a href="" class="text-mod__link___1rXmw text-mod__primary___zjRQH text-mod__hover___1TDrR" id="viewLogistic" style="color: #f40">查看物流</a>
                                                                        </p>
                                                                    </div>
                                                                </c:if>

                                                                <c:if test="${marketOrder.orderStatus == 4}">
                                                                    <p style="margin-bottom:3px;">
                                                                        <span class="text-mod__link___1rXmw">交易完成</span>
                                                                    </p>
                                                                    <div>
                                                                    </div>
                                                                </c:if>

                                                        <c:if test="${marketOrder.orderStatus == 5}">
                                                            <p style="margin-bottom:3px;">
                                                                <span class="text-mod__link___1rXmw">交易成功</span>
                                                            </p>
                                                        </c:if>
                                                        <div>
                                                        <p style="margin-bottom:3px;">
                                                            <a href="/order/ticket_trade_item_detail.htm?tradeId=${marketOrder.marketOdd}" class="text-mod__link___1rXmw text-mod__hover___1TDrR" target="_blank" rel="noopener noreferrer" id="viewDetail">订单详情</a>
                                                        </p>
                                                        </div>
                                                    </td>
                                                </c:if>
                                                <%-- 除了评价，其他的都要融合 --%>
                                                <c:if test="${marketOrder.orderStatus == 4 || marketOrder.orderStatus == 5}">
                                                            <td>
                                                                <p style="margin-bottom:3px;">
                                                                    <c:if test="${marketSrOrder.isComment == 0}">
                                                                    <a href="/order/publish_evaluation.htm?bizOrderId=${marketOrder.marketOdd}&detailID=${marketSrOrder.id}&timeStamp=${tfn:getTime(marketOrder.createTime)}" class="button-mod__button___2Ew0a button-mod__default___vxWMG button-mod__button___2IKLk" target="_blank" id="rateOrder">评价</a>
                                                                    </c:if>
                                                                    <c:if test="${marketSrOrder.isComment == 1 && marketSrOrder.isAppendComment == 0}">
                                                                        <a href="/order/append_rate_detail.htm?trade_id=${marketOrder.marketOdd}&detail_id=${marketSrOrder.id}#miaoposition" class="text-mod__link___1rXmw text-mod__hover___1TDrR" target="_blank" rel="noopener noreferrer" id="viewDetail">追加评论</a>
                                                                    </c:if>
                                                                </p>
                                                            </td>
                                                </c:if>
                                                <c:if test="${marketOrder.orderStatus!=4}">
                                                    <c:if test="${vs2.first}">
                                                <td class="" ${vs2.first?"rowspan="+=rowSpanLen:""}>
                                                        <div>
                                                            <%-- 不同状态将展示不同选项 --%>
                                                            <%-- 未付款，已付款，已发货，交易成功，等待退款/退货退款，交易关闭 --%>
                                                                <c:if test="${marketOrder.orderStatus == 1}">
                                                                    <p style="margin-bottom:3px;">
                                                                        <a href="/order/lightPayCashier.htm?bizOrderId=${marketOrder.marketOdd}"><button class="button-mod__button___2Ew0a button-mod__primary___TqWy8 button-mod__button___2IKLk" target="_blank" action="a8" id="pay">立即付款</button></a>
                                                                    </p>
                                                                    <p style="margin-bottom:3px;">
                                                                        <a href="" class="text-mod__link___1rXmw text-mod__hover___1TDrR" target="_blank" rel="noopener noreferrer" action="a8" id="helpPay">找朋友帮忙付</a>
                                                                    </p>
                                                                    <p style="margin-bottom:3px;">
                                                                        <a class="text-mod__link___1rXmw text-mod__hover___1TDrR cancelOrder" action="a8" id="cancelOrder" title="请与卖家协商取消订单，每天不得取消超过5笔订单。">取消订单</a>
                                                                    </p>
                                                                </c:if>


                                                                <c:if test="${marketOrder.orderStatus == 3}">
                                                                    <p style="margin-bottom:3px;">
                                                                        <a href="96" class="text-mod__link___1rXmw text-mod__hover___1TDrR" target="_blank" rel="noopener noreferrer">修改订单</a>
                                                                    </p>
                                                                    <p style="margin-bottom:3px;">
                                                                    <span class="text-mod__link___1rXmw text-mod__grey___2KbVI">
                                                                        <i class="iconfont icon-jishiqi" style="font-size: 15px;"></i>
                                                                        <c:set var="shipTime" value=""></c:set>
                                                                        <c:forEach items="${marketOrder.orderTimelines}" var="timeLine" varStatus="vs3">
                                                                            <c:if test="${timeLine.orderStatus == 3}">
                                                                                <c:set var="shipTime" value="${timeLine.createTime}"></c:set>
                                                                            </c:if>
                                                                        </c:forEach>
                                                                        <span class="text">${tfn:formatShipTimeDifference(shipTime)}</span>
                                                                    </span>
                                                                    </p>
                                                                    <p style="margin-bottom:3px;">
                                                                        <a href="/order/confirm_goods.htm?bizOrderId=${marketOrder.marketOdd}" class="button-mod__button___2Ew0a button-mod__secondary___RRGMH button-mod__button___2IKLk confirmGood" target="_blank">确认收货</a>
                                                                    </p>
                                                                    <p style="margin-bottom:3px;">
                                                                        <a href="96" class="button-mod__button___2Ew0a button-mod__secondary___RRGMH button-mod__button___2IKLk ALICOM_PKG_DETAIL" target="_blank">查看礼包</a>
                                                                    </p>
                                                                    <p style="margin-bottom:3px;">
                                                                        <a href="96" class="text-mod__link___1rXmw text-mod__hover___1TDrR" target="_blank" rel="noopener noreferrer" action="b4" id="applyInvoice">申请开票</a>
                                                                    </p>
                                                                </c:if>

                                                        </div>
                                                </td>
                                                    </c:if>
                                                </c:if>
                                            </tr>
                                        </c:forEach>
                                        <!-- 保险服务 -->
                                        <tr>
                                            <td class="sol-mod__no-br___36X3g">
                                                <div class="ml-mod__container___2DOxT production-mod__production___123Ax suborder-mod__production___3WebF">
                                                    <div class="ml-mod__media___2sZrj" style="width:0;"></div>
                                                    <div style="margin-left:0;">
                                                        <p>
                                                            <a href="" target="_blank" rel="noopener noreferrer">
                                                                <span> </span>
                                                                <span style="line-height:16px;">保险服务</span>
                                                                <span> </span>
                                                            </a>
                                                            <span></span>
                                                            <span></span>
                                                            <span></span>
                                                        </p></div>
                                                </div>
                                            </td>
                                            <td class="sol-mod__no-br___36X3g">
                                                <div class="price-mod__price___3_8Zs">
                                                    <p>
                                                        <span>￥</span>
                                                        <del>2.50</del>
                                                        <span style="color: #f40"> 免费赠送</span>
                                                    </p>
                                                </div>
                                            </td>
                                            <td class="sol-mod__no-br___36X3g">
                                                <div></div>
                                            </td>
                                            <td>
                                                <div></div>
                                            </td>
                                            <td class="sol-mod__no-bt___1H7Cb"></td>
                                            <td class="sol-mod__no-bt___1H7Cb"></td>
                                            <td class="sol-mod__no-bt___1H7Cb"></td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </c:forEach>


                        <div class="row-mod__row___1aPep js-actions-row-bottom" data-reactid=".0.8">
                            <div style="float:left;"  class="operating>
                                <label class="index-mod__select-all___2lWPl js-select-all">
                                    <input class="index-mod__checkbox___3mesI allChecked" type="checkbox">
                                    <span>全选</span></label>
                                <div class="batch-mod__container___sK68S" data-reactid=".0.8.0.1">
                                    <button
                                            class="button-mod__button___2HDif button-mod__default___2pRKd button-mod__small___1a8rc batch-mod__button___2aEBk batchReceipt"
                                    >批量确认收货
                                    </button>
                                </div>
                            </div>
                            <!-- 分页 start-->
                            <div style="float:right;">
                                <div id="tmallPagination"></div>
                                <input type="hidden" id="allPage" value="${allPage}">
                                <!-- 分页 end-->
                            </div>
                        </div>
                        </c:if>
                        <c:if test="${!notEmpty}">
                            <div class="index-mod__empty-list___3CaW2 js-empty-list" style="display: block; text-align: center;">
                                <img class="index-mod__empty-list-img___3kyoO" src="//img.alicdn.com/tps/i3/T1MQ1cXhtiXXXXXXXX-78-120.png">
                                <span data-reactid=".0.7.1">没有符合条件的宝贝，请尝试其他搜索条件。</span>
                            </div>
                        </c:if>
                    </div>
                </div>
                <br/>
                <!-- 跟龙猫说两句把 -->
                <div style="padding:10px; margin: 30px 0 0 120px;">
                    <img style="vertical-align: middle;" alt="反馈"
                         src="//gtd.alicdn.com/tps/i1/T1TPhsXoRlXXXXXXXX-18-18.png" width="18" height="18">
                    我对已买到的宝贝有意见或建议，
                    <a target="_blank" href="//survey.taobao.com/survey/QwE0mTiCx?type=5">跟龙猫说两句</a>
                </div>
            </div>
            <!-- 左侧菜单 start-->
            <jsp:include page="${pageContext.request.contextPath}/public_page/ui-left.jsp"></jsp:include>
            <style>
                #bought {
                    color: #f40;
                }
            </style>
            <!-- 左侧菜单 end-->
        </div>
    </div>

    <!-- tail-->
    <jsp:include page="${pageContext.request.contextPath}/public_page/last.html"></jsp:include>
</div>

<div class="rc-select-dropdown rc-select-dropdown--single rc-select-dropdown-placement-bottomLeft select-evaluate"
     style="left: 946px;top: 188px; width: 151px; display: none;">
    <div data-reactid=".1.1.0">
        <ul class="rc-select-dropdown-menu rc-select-dropdown-menu-vertical  rc-select-dropdown-menu-root" id="evaStatus" role="menu">
            <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="999">全部
            </li>
            <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="0">需我评价
            </li>
            <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="1">我已评价
            </li>
        </ul>
    </div>
</div>


<div class="rc-select-dropdown rc-select-dropdown--single rc-select-dropdown-placement-bottomLeft select-transaction"
     style="left: 946px;top: 188px; width: 151px; display: none;">
    <div data-reactid=".1.1.0">
        <ul class="rc-select-dropdown-menu rc-select-dropdown-menu-vertical  rc-select-dropdown-menu-root" id="transactionStatus" role="menu">
            <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="999">全部
            </li>
            <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="4">等待买家评价
            </li>
            <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="1">付款确认中
            </li>
            <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="2">买家已付款
            </li>
            <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="3">卖家已发货
            </li>
            <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="8">交易成功
            </li>
            <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="7">交易失败
            </li>
            <li class="rc-select-dropdown-menu-item" role="menuitem" data-value="6">退款中的订单
            </li>
        </ul>
    </div>
</div>

<div class="rc-select-dropdown rc-select-dropdown--single rc-select-dropdown-placement-bottomLeft select-afterSale"
     style="left: 946px;top: 188px; width: 151px; display: none;">
    <div data-reactid=".1.1.0">
        <ul class="rc-select-dropdown-menu rc-select-dropdown-menu-vertical  rc-select-dropdown-menu-root"
            role="menu" aria-activedescendant="" data-reactid=".1.1.0.1">
            <li class="rc-select-dropdown-menu-item" role="menuitem" aria-selected="false"
                data-reactid=".1.1.0.1.$NOT_PAID/=1$NOT_PAID">全部
            </li>
            <li class="rc-select-dropdown-menu-item" role="menuitem" aria-selected="false"
                data-reactid=".1.1.0.1.$PAY_PENDING/=1$PAY_PENDING">已投诉
            </li>
            <li class="rc-select-dropdown-menu-item" role="menuitem" aria-selected="false"
                data-reactid=".1.1.0.1.$PAID/=1$PAID">退款中
            </li>
        </ul>
    </div>
</div>

<div class="loading-mod__loading___3nGTY loading-mod__hidden___1tIoI" style="display: none">
    <div class="loading-mod__bg___2ylNX loading-mod__q___3pSfD"></div>
    <div class="loading-mod__bg___2ylNX loading-mod__z___3Le9C"></div>
</div>
<jsp:include page="/public_page/open_chat.jsp"></jsp:include>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/self/user/boughtBaby.js"></script>
</body>
</html>
